filter_input_array
Get a series of external variables and can be processed through filters
filter_input_array()
function gets multiple inputs from outside the script and filters them.
This function does not require repeated calls to filter_input()
, which is useful for filtering multiple input variables.
This function can obtain input from various sources:
If successful, the filtered data is returned, and if failed, false.
filter_input ( input_type , args )
parameter | describe |
---|---|
input_type | Required. Specify the input type. See the possible types in the list above. |
args |
Optional. Specifies an array of filter parameters. The legal array key is the variable name. The legal value is the filter ID, or an array of specified filters, flags, and options. This parameter can also be a separate filter ID, if so, all values in the input array are filtered by the specified filter. |